package com.xgg.taiwuinfo.gongfa.base;

import android.content.Context;

import com.xgg.taiwuinfo.R;
import com.xgg.taiwuinfo.gongfa.abilities.Ability_Shenfa_Bonus;
import com.xgg.taiwuinfo.utils.GongfaType;

abstract public class Gongfa_Shenfa extends Gongfa
{
    public Gongfa_Shenfa(String name , int level , int element , int inherit , double casttime , int castcost, double pointlast, int points, int moveinterval , int moveintervalfahui, int movedistance, int movedistancefahui)
    {
        super(name,level,element, GongfaType.TYPE_SHENFA , inherit);
        ability_shenfa_bonus = new Ability_Shenfa_Bonus(casttime , castcost, pointlast, points, moveinterval , moveintervalfahui, movedistance, movedistancefahui);
    }

    //身法相关属性
    final Ability_Shenfa_Bonus ability_shenfa_bonus ;

    @Override
    public String getTypeString(Context ctx)
    {
        return ctx.getString(R.string.type_shenfa);
    }

    public String getCastEffectString(Context ctx)
    {
        return ability_shenfa_bonus.getCastEffectString(ctx);
    }

    public int getCastCost() { return ability_shenfa_bonus.getCastCost(); }
    public double getCastTime() { return ability_shenfa_bonus.getCastTime(); }
    public int getPointNum() { return  ability_shenfa_bonus.getPointNum(); }
    public double getPointLast() { return ability_shenfa_bonus.getPointLast() ; }
}
